package com.kungfu.entity;

import com.google.gson.GsonBuilder;
import com.kungfu.utils.ResultCodeEnum;

public class RegisterResponse {
    private String resultCode;
    private String resultDesc;

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }
    public void setResult(ResultCodeEnum code) {
        this.resultCode = code.getCode();
        this.resultDesc = code.getDesc();
    }
    //    private String data;
//
//    public static class RegisterBean {
//
//    }
    public String toString() {
        return new GsonBuilder().create().toJson(this);
    }
}
